package com.xiehospital.system.service.impl;

import com.xiehospital.common.core.dto.BedForStatusDTO;
import com.xiehospital.common.core.dto.DischargeDTO;
import com.xiehospital.common.core.dto.HospitalDTO;
import com.xiehospital.common.core.dto.UserForDeptDTO;
import com.xiehospital.system.mapper.SysChartsMapper;
import com.xiehospital.system.service.ISysChartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysChartsServiceImpl implements ISysChartsService {

    @Autowired
    private SysChartsMapper chartsMapper;

    public List<HospitalDTO> bedList() {
        List<HospitalDTO>bedList=chartsMapper.bedList();
        System.out.println("--"+bedList.size()+"--");
        return chartsMapper.bedList();
    }

    public List<UserForDeptDTO> UserForDeptList() {
        return chartsMapper.UserForDeptList();
    }

    @Override
    public List<BedForStatusDTO> BedForStatusList() {
        return chartsMapper.BedForStatusList();
    }

    @Override
    public List<DischargeDTO> Dischargelist() {
        return chartsMapper.Dischargelist();
    }
}
